package shapewar.engine.model;
import shapewar.conf.Conf;
import shapewar.engine.intefac.Regedit;
import shapewar.engine.model.abst.ModelAdapter;
import shapewar.engine.presenter.Presenter;

public class Map extends ModelAdapter {
	
	public float width = Conf.map_width;
	public float height = Conf.map_height;
	public int cols = 5,rows = 6;
	public float cols_width = width / cols;
	public float rows_height = height / rows;
	public float stroke_width = Conf.SIZE * 5;
	
	public Map(Presenter pst, int id, float width, float height) {
		super(pst, id, 0, 0, 0, Conf.depth_map);
	}

	@Override
	public void init() {
		pst.bridge.addView(pst.bridge.createMapView(this));
		pst.regist(this, Regedit.IView);
	}

	@Override
	public void destory() {
		pst.bridge.removeView(getView());
	}
}
